package at.fhj.ase.business;

import static org.junit.Assert.*;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

import javax.xml.stream.XMLStreamException;

import org.junit.Test;

import at.fhj.ase.business.FilterParser;
import at.fhj.ase.data.Filter;

public class TestFilterParser {

	@Test
	public void testExtractFilters() throws FileNotFoundException, XMLStreamException, IOException {
		FilterParser parser = new FilterParser();
		List<Filter> filters = parser.extractFilters(parser.createFilterFileParser());
		assertTrue(filters.size()!=0);
	}
}
